import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerItemHelper } from "./SeqPlayerItemHelper";
import { SEntityId } from "./SEntityId";
type int = number;
//class SCrossSeaDropItems
    
    export  class SCrossSeaDropItems extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossSeaDropItems();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            this.toEntityId.__write(arg1);
            SeqPlayerItemHelper.write(arg1, this.playerItems);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.playerItems = SeqPlayerItemHelper.read(arg1);
            return;
        }

        public /* const */_type: int=843;

        public /* var */type: int;

        public /* var */toEntityId: SEntityId;

        public /* var */playerItems: Array<any>;

        public static /* var */_regist: SCrossSeaDropItems;
    }

            SCrossSeaDropItems._regist = new SCrossSeaDropItems(true);
        